| Conditions | 2 |
| Total Lines | 6 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const stringifyProperty: SymbolConstructor["toPrimitive"] | "valueOf" | "toString" = Symbol.toPrimitive |
||
| 10 | |||
| 11 | function stringifyClassNamed<T extends {className: string}>(source: T) :T { |
||
| 12 | if (!source.hasOwnProperty(stringifyProperty)) |
||
| 13 | $defineProperty(source, stringifyProperty, {value: classNamedToString}) |
||
| 14 | |||
| 15 | return source |
||
| 16 | } |
||
| 34 |